package com.ybkj.daijia.server.event.model;

import com.ybkj.daijia.server.model.Driver;
import com.ybkj.daijia.server.model.Order;
import org.springframework.context.ApplicationEvent;

public class OrderCancelYupaiEvent extends ApplicationEvent {

    /**
     *
     */
    private static final long serialVersionUID = -5902865763844427571L;

    private Driver driver;

    private Integer lastDriverStatus;

    private Integer lastOrderStatus;

    public OrderCancelYupaiEvent(Order source, Driver driver, Integer lastDriverStatus,
        Integer lastOrderStatus) {
        super(source);
        this.driver = driver;
        this.lastDriverStatus = lastDriverStatus;
        this.lastOrderStatus = lastOrderStatus;
    }

    public Driver getDriver() {
        return driver;
    }

    public Integer getLastDriverStatus() {
        return lastDriverStatus;
    }

    public Integer getLastOrderStatus() {
        return lastOrderStatus;
    }


}
